from django.contrib import admin
from academy.models import Academy
# Register your models here.

# 修改名称
admin.site.site_header='学生成绩管理系统后台'
admin.site.site_title='学生成绩管理系统后台'

@admin.register(Academy)
class academyAdmin(admin.ModelAdmin):
    # 显示列表
    list_display = ('academy_id','academy_name','create_time','modify_time')
    # 可编辑列表
    list_editable =('academy_name',)
    # 搜索的字段
    search_fields = ('academy_name',)